package org.presstrack.vos
{
	import mx.collections.ArrayCollection;
	
	[RemoteClass(alias="org.presstrack.vos.TrackStateVO")]
	
	[Bindable]
	public class TrackStateVO
	{
		public var color:String;
		public var label:String;
		public var state:String;
		
		public function TrackStateVO(_state:String)
		{
			state = _state;
			switch(_state)
			{
				case "1":
				case "6": color = "#FFFFFF"; label="новый"; break;
				case "2": color = "#FAEC0C"; label="бумага на складе"; break;
				case "3": color = "#2e93fb"; label="в работе"; break;
				case "4": color = "#05fb16"; label="готово"; break;
				case "5": color = "#fd0410"; label="проблема"; break;
				default: color = "#dddddd"; label="остановлен"; break;
			}
		}

	}
}